<?php

namespace app\modules\m\controllers;

use app\models\brand\BrandImage;
use app\models\brand\BrandSetting;
use app\modules\m\controllers\common\BaseController;

class DefaultController extends BaseController
{

    //品牌首页
    public function actionIndex()
    {
        $info=BrandSetting::find()->one();
        $img_list=BrandImage::find()->orderBy(['id'=>SORT_DESC])->all();
        return $this->render('index',['info'=>$info,'img_list'=>$img_list]);
    }
}
